<?php
require_once('page_base_jectly.php');

    /*
     * sub classes of page_base_jectly will include only the changes from index_2;
     */
class my_account extends page_base_jectly {

    function __construct() {
        parent::__construct();
        $this->bool_main_menu_on=true;
        $this->bool_main_logo_on=true;
        $this->bool_search_tab_on=true;
        $this->bool_main_3boxes_on=false;
        $this->bool_search_result_within_page_on=false;
        $this->bool_breadcrumb_on=true;
        $this->bool_account_menu_on=true;
        $this->bool_contents_area_on=true;
    }

    protected $contents_html='<div class=\'center\'>This is my account page.</div>';

    public function render_breadcrumb() {

        if($this->bool_breadcrumb_on)
        {
             echo('<div align="center" style="overflow:hidden;">
        <div class="floatLeft breadcrumb">
            <a href="#">Home</a> &gt;&gt; <a href="settings.html">My Account</a>&gt;&gt; Setting
        </div>');
        }
    }

    public function render_account_menu() {

        if($this->bool_account_menu_on && $this->bool_logined())
        {
            echo('
<div class=" menu_account">
        <fieldset class="w915" >
        <label class="menu_label">Menu</label>

        <div class="menu">
        <fieldset >

        <label>My Account</label><br />
        <a href="#">Welcome</a><br />
        <a href="settings.html">Setting</a><br />
        <a href="#">Feedback</a><br />
        <a href="'.$this->user->get_href_for_user_page().'">My public profile</a><br />
        </fieldset>
        </div>
        <div class="buyers_activity">
        <fieldset>

        <label>Buyers Activity</label><br />
        <a href="postingProjectBuyer.html">Posting Project</a><br />
        <a href="startingProject.html">Starting Project</a><br />
        <a href="closeProjectBuyer.html">Closed Project</a><br />
        <a href="reviewProvider.html">Review Providers</a><br />


        </fieldset>
        </div>
        <div class="provider_activity">
        <fieldset >
        <label >Providers Activity</label><br />
        <a  href="biddingProject.html">Bidding Project</a><br />
        <a href="wonProject.html">Won Project</a><br />
        <a href="closeProjectProvider.html">Closed Project </a><br />
        <a href="reviewBuyer.html">Review Buyers</a><br />


        </fieldset>
        </div>
        <div class="payment_transaction">
        <fieldset>
    <label> Payment Transaction</label><br />
        <a href="managePayment.html">Manage Payments</a><br />
        <a href="transactionHistory.html">Transaction History</a><br />
        </fieldset>

        </div>

        <div class="balance">
        <fieldset>
        <legend>Balanace</legend>

        <div class="label">Credit: </div><div class="credit">111</div><br />
        <div class="label">Outgoing Escrow: </div><div class="OutEscrow" style="">111</div><br />
        <div class="label">Incoming Escrow: </div><div class="InEscrow">111</div><br />
        <div class="label">Reserved Withdraw: </div><div class="ResWithdraw">111</div><br /><script>menu.push("project_1");</script>
                        <div class="option" style="z-index:2000; position:absolute; padding-left:0px; padding-top:5px;">
                            <ul>
                                <li>
                                    <!-- Menu collection id \'mnu_search\' should be added in JS menu collection array -->
                                    <div id="mnu_project_1" class="optionGroup_project_design w130">
                                        <a href="#">Deposit<img src="images/popup_small.gif" alt="" border="0" align="absmiddle" /></a>

                                        <a href="#">Withdraw<img src="images/popup_small.gif" alt="" border="0" align="absmiddle" /></a>

                                        <a href="#">New Escrow<img src="images/popup_small.gif" alt="" border="0" align="absmiddle" /></a>									</div>
                                </li>
                                <li>
<div class="option_in w185 right pad0 mrgLeft4">
                                    <span onclick="showMenu(\'project_1\',\'4\')"><span style="float:left;"><span style="float:left;">Project Actions</span></span> <img id="img_project_1" src="images/dwnArrow.jpg" alt=""/></span></div>
                                </li>
                            </ul>
                        </div>
                        </fieldset>
        </div>
        </fieldset>
        </div>
        </div>
');

        }
    }

    public function render_contents_area() {

        if($this->bool_contents_area_on)
        {
            echo($this->contents_html);
        }
    }

}

my_account::Run('my_account','my_account.tpl.php');

?>